home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
jre115s.exe
/
jre1.1.5
/
README
< prev
Wrap
Text File
|
1997-11-24
|
19KB
|
449 lines
README
The Java(tm) Runtime Environment
JRE 1.1.5
-----------------------------------------------------------------------
CONTENTS
Overview of Java Runtime
- Introduction
- The Java Runtime Interpreter
- Required vs. Optional Files
- Win 32 Files
- Required Files
- Optional Files
- Solaris Files
- Required Files
- Optional Files
Bundling and Running the Java Runtime
- Bundling the Java Runtime
- Java Runtime Example
- Runtime Documentation
=======================================================================
OVERVIEW OF JAVA RUNTIME
=======================================================================
-----------------------------------------------------------------------
INTRODUCTION
-----------------------------------------------------------------------
This is version 1.1.5 of the Java Runtime Environment, also known as
the Java Runtime, or JRE. The Java Runtime is the minimum standard
Java Platform for running Java programs. It contains the Java
Virtual Machine, Java Core Classes and supporting files.
The JRE can be invoked from the command line by using the jre tool
(see the following section). On Windows platforms, the jre tool will
ignore the CLASSPATH environment variable. For both Windows and
Solaris platforms, the -cp option is recommended to specify an
application's class path.
This document uses the term "vendors" to refer to licensees,
developers, and independent software vendors (ISVs) who
license and distribute the JRE with their Java programs.
The Win32 version of JRE 1.1.5 has an installer suitable for use
by end-users. This gives software developers the option of not
bundling the JRE with their applications. Instead, they can direct
end-users to download and install the JRE themselves.
An installer is not available for Solaris versions of the JRE.
Developers should bundle the JRE and an installer with their Solaris
applications.
The JRE includes all of the non-debuggable .dll or .so files plus
the necessary classes from the JDK 1.1.5 to support a runtime-only
program. The JRE does not include any of the development tools
(such as appletviewer or javac) or classes that would pertain only
to a development system.
Vendors must follow the terms of the JRE Binary Code License agreement,
which includes these terms:
- Don't arbitrarily subset the JRE. You may omit only the
files listed below as optional.
- Include in your product's license the provisions called out
in the JRE Binary Code License.
Comments regarding the JRE are welcome. Please send them to
jre-comments@java.sun.com. Due to the large volume of email received
each day, JavaSoft usually cannot respond to your email personally.
The JRE is a product of Sun Microsystems, Inc.
JavaSoft is an operating company of Sun, and develops the JRE.
-----------------------------------------------------------------------
THE JAVA RUNTIME INTREPRETER
-----------------------------------------------------------------------
The jre tool invokes the Java Runtime interpreter for executing Java
applications. The tool is available in the Win32, Solaris-Sparc, and
Solaris x86 downloads of the JRE. The syntax for the jre command is:
jre [ options ] classname <args>
The classname argument is the name of the class file to be
executed. Any arguments to be passed to the class must be placed
after the classname on the command line.
An alternative version of the tool, jrew, is available for Win32. The
jrew command is identical to jre, except that a console window is not
invoked. The syntax of the jrew command is
jrew [ options ] classname <args>
On Windows platforms, the jre tool will ignore the CLASSPATH
environment variable. For both Windows and Solaris platforms, the
-cp option is recommended to specify an application's class path.
Options for the jre and the jrew commands are as follows:
-classpath path Specifies the path that jre uses to
look up classes. Overrides the default
classpath.
-cp path Prepends the specified path to the default
classpath that jre uses to look up classes.
-help Print a usage message.
-mx x Sets the maximum size of the memory allocation
pool (the garbage collected heap) to x. The
default is 16 megabytes of memory. x must be
greater than or equal to 1000 bytes.
-ms x Sets the startup size of the memory allocation
pool (the garbage collected heap) to x. The
default is 1 megabyte of memory. x must be
greater than 1000 bytes.
-noasyncgc Turns off asynchronous garbage collection. When
activated, no garbage collection takes place
unless it is explicitly called or the program
runs out of memory.
-noclassgc Turns off garbage collection of Java classes.
By default, the Java interpreter reclaims space
for unused Java classes during garbage collection.
-nojit Specifies that any JIT compiler should be
ignored. The default Java interpreter is invoked.
-ss x The -ss option sets the maximum stack size that
can be used by C code in a thread to x. The
default units for x are bytes. The value of x
must be greater than or equal to 1000 bytes.
-oss x The -oss option sets the maximum stack size
that can be used by Java code in a thread to x.
The default units for x are bytes. The value of
x must be greater than or equal to 1000 bytes.
-v, -verbose Causes jre to print a message to stdout each
time a class file is loaded.
-verify Performs byte-code verification on the class
file. Beware, however, that java -verify does
not perform a full verification in all
situations. Any code path that is not actually
executed by the interpreter is not verified.
Therefore, java -verify cannot be relied upon to
certify class files unless all code paths in
the class file are actually run.
-verifyremote Runs the verifier on all code that is loaded
into the system via a classloader. verifyremote
is the default for the interpreter.
-noverify Turns verification off.
-verbosegc Causes the garbage collector to print out
messages whenever it frees memory.
-DpropName=value Defines a property value. propName is the name
of the property whose value you want to change
and value is the value to change it to. For
example, the command
java -Dawt.button.color=green ...
sets the value of the property awt.button.color
to "green".
-----------------------------------------------------------------------
REQUIRED vs. OPTIONAL FILES
-----------------------------------------------------------------------
Licensees must follow the terms of the accompanying LICENSE.
The files that make up the JRE are divided into two categories:
required and optional. To paraphrase that license, files that
are marked "optional" here do not need to be included with the
licensee's program.
The term "required" means licensees who distribute the runtime
must include those files with their program, whether or not their
program ever uses those files. Those files are a required part of
the Java Platform.
Most of the optional files provide localization support for languages.
The JRE includes the bin and lib directories which both must
reside in the same directory. We call this directory <runtime-dir>.
In the following lists, all paths are relative to the <runtime-dir>
directory (which is originally "jre1.1.5").
-----------------------------------------------------------------------
WIN32 FILES
-----------------------------------------------------------------------
Two versions of JRE 1.1.5 for Win32 are available. One version contains
files for internationalization support. The version with
internationalization support contains all the files listed below under
both the REQUIRED FILES and OPTIONAL FILES subsections. A smaller
version of the Win32 JRE is available that does not contain those
optional files that provide interna